package com.evil.kingdom.pojo.enums;

import com.evil.common.core.exception.BusinessException;
import com.evil.kingdom.pojo.enums.result.RCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 战场类型
 *
 * @author liyang
 * @date 2024-06-12 09:58
 */
@Getter
@AllArgsConstructor
public enum BattlefieldTypeEnum {

    WILDERNESS(1, "野外"),
    CITY(2, "城池"),
    ;

    private final int type;
    private final String title;

    public static BusinessException error() {
        return new BusinessException(RCodeEnum.ERROR_PARAMETER, "战场类型错误");
    }
}
